home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Dr. Windows 3
/
dr win3.zip
/
dr win3
/
PROGRAMR
/
SPHERES.ZIP
/
TSCRNSAV.H
< prev
Wrap
C/C++ Source or Header
|
1993-06-25
|
2KB
|
59 lines
// ObjectWindows - (C) Copyright 1992 by Borland International
//
// tscrnsav.h
#ifndef __TSCRNSAV_H
#define __TSCRNSAV_H
#ifndef __OWL_H
#include <owl.h>
#endif
#define WM_SAVESCREEN ( WM_USER + 500 )
_CLASSDEF( TScrnSavWindow )
class TScrnSavWindow : public TWindow
{
POINT prevPt;
public:
TScrnSavWindow( PTWindowsObject AParent, LPSTR ATitle,
PTModule AModule = NULL );
~TScrnSavWindow();
virtual LPSTR GetClassName(){ return "WindowsScreenSaverClass"; }
virtual void GetWindowClass( WNDCLASS & AWndClass );
virtual void SetupWindow( void );
virtual void DefWndProc( RTMessage );
virtual void WMSysCommand( RTMessage ) = [ WM_FIRST + WM_SYSCOMMAND ];
virtual void AnimateScreen();
};
_CLASSDEF( TScrnSavApp )
class TScrnSavApp : public TApplication
{
private:
int j;
virtual void InitMainWindow();
protected:
BOOL fConfigureFlag;
PTDialog pConfigureDialog;
PTScrnSavWindow pScrnSavWnd;
public:
TScrnSavApp( LPSTR AName, HINSTANCE AnInstance,
HINSTANCE APrevInstance,
LPSTR ACmdLine, int ACmdShow ) :
TApplication( AName, AnInstance, APrevInstance, ACmdLine, ACmdShow )
{
pScrnSavWnd = NULL;
pConfigureDialog = NULL;
}
virtual void IdleAction();
virtual void InitScrnSavWindow();
virtual void InitConfigDialog(){};
};
#endif // __TSCRNSAV_H